<?php
$RUN_BASE = '/home/luanjunyi/run/';
$DAEMON_BASE = $RUN_BASE . 'taras-sharded/taras';
$TWEET_BASE = $RUN_BASE . 'tweet-sharded/taras';
$VICTIM_BASE = $RUN_BASE . 'victim-sharded/taras';
$DEBUG = "taras.debug";
?>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="/lib/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="sys_stat.css" />

    <script type="text/javascript" src="/lib/js/sprintf.js"></script>
    <script type="text/javascript" src="/lib/js/jquery.js"></script>
    <script type="text/javascript" src="sys_stat.js"></script>

    <title>Taras系统运行状态</title>
  </head>

  <body>
    <table id="stat-table" cellpadding="10">
      <tr>
        <td>
          <?php $target="{$DAEMON_BASE}0/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$DAEMON_BASE}1/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php $target="{$DAEMON_BASE}2/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$DAEMON_BASE}3/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php $target="{$DAEMON_BASE}4/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$DAEMON_BASE}5/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>

      <tr>
        <td>
          <?php $target="{$TWEET_BASE}0/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$TWEET_BASE}1/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php $target="{$TWEET_BASE}2/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$TWEET_BASE}3/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>

      <tr>
        <td>
          <?php $target="{$VICTIM_BASE}0/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$VICTIM_BASE}1/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>
      <tr>
        <td>
          <?php $target="{$VICTIM_BASE}2/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
        <td>
          <?php $target="{$VICTIM_BASE}3/{$DEBUG}"; include 'sys_stat_cell.php'; ?>
        </td>
      </tr>



    </table>
  </body>
</html>
